function WiSiL_plotSpectralEfficiency(filename)
% WISIL_PLOTSPECTRALEFFICIENCY Plot spectral efficiency graph from WiSiL
% results.
%
%   WiSiL_plotSpectralEfficiency( FILENAME ) gets the results pre-saved in
%   file FILENAME and uses them to plot: [ Efficiency ] X [ E_b/N_o (dB) ].
%   
%   WiSiL_plotBER() gets the results from file 'results.mat'.

% 
% Wilson Diniz Wellisch, 29/10/2010
%   created
% Andre Noll Barreto, 03/04/2011
%   included file name option


if ~exist('filename', 'var')
    filename = 'results';
end
load (filename);

figure;
plot(param.simulation.EbN0,liquidRate,'o-');
hold on;
xlabel('E_b/N_o (dB)');
ylabel('Efficiency (bits/s/Hz)');
legend('measured', 'maximum');
grid on;